<?php
error_reporting('E_ALL | E_STRICT');

define('EXT', '.php');

define('PUBLIC_HTML', realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR);
define('DOCROOT', str_replace('public_html', '', realpath(dirname(__FILE__))));

define('APPPATH', DOCROOT.'application/');
define('MODPATH', DOCROOT.'modules/');
define('SYSPATH', DOCROOT.'system/');

if ( ! defined('KOHANA_START_TIME'))
{
	define('KOHANA_START_TIME', microtime(TRUE));
}

if ( ! defined('KOHANA_START_MEMORY'))
{
	define('KOHANA_START_MEMORY', memory_get_usage());
}

// Bootstrap the application
require APPPATH.'bootstrap'.EXT;

echo Request::factory()
	->execute()
	->send_headers(TRUE)
	->body();